package user;

import book.Book;
import book.BookList;
import operation.IOperation;

public abstract class User {
    protected String name;//用户名
    public IOperation[] ioPerations;//这里不初始化 接口数组
    public abstract int menu();

    public User(String name) {
        this.name = name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getName() {
        return name;
    }
    public void doOperation(int choice, Book head) {
        ioPerations[choice].work(head);
    }
}
